<?php require_once($_SERVER['DOCUMENT_ROOT']."/defaultconf.mex");
require_once($GLOBALS['PAD']."Modules/FJK46JDE/modconf.php");
MYTCONN();

	echo 'Funcionarios: ';
	$qrStaffMembers = "SELECT smb_ID AS ID, smb_Name AS NAME FROM systemoffice.staff_members 
				INNER JOIN systemoffice.main_users ON StaffMember = smb_ID AND type = 2
				INNER JOIN systemoffice.main_offices ON main_offices.ref = ref_office
			WHERE office_number = {$_GET['SMDM']} AND smb_Flag = {$_GET['SMFG']} AND smb_Flag != 5";
	mn_field('select','ED','tsv_Member','',$qrStaffMembers,' ','False','" onchange="
		replaceUrl(\'SelcMember\',\''.$MODURL.'Lib/get_memberrsm.php?SMID=\'+this.options[this.selectedIndex].value);');